import json
import os
load_file = open("../file_location.json", 'r', encoding="utf-8")
CONFIG = json.load(load_file)
# data_location = CONFIG["location"]["data_root"]
data_locations = CONFIG["location"]
data_root = CONFIG["location"]['data_root']

for data_location in data_locations:

    if data_location == 'data_root'\
            or data_location == 'data_origin'\
            or data_location == 'data_after_process'\
            or data_location == 'data_logging':
        continue
    else:
        # print(data_locations[data_location])
        if '/' in data_locations[data_location]:
            # print(data_locations[data_location])
            os.mkdir(data_root + data_locations[data_location])
